package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {

    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    List<Permission> selectByEmployeeId(Long id);

    PageInfo<Permission> list(QueryObject qo);

    List<String> getPermissionExpressionByEmployeeId(Long id);
}
